
# 脚本工具
from flask_script import Manager
# 迁移命令
from flask_migrate import MigrateCommand, Migrate

# 状态保持
from flask import session
# 导入app
from info import create_app, db
app = create_app('develop')

# 实例化管理对象
manager = Manager(app)
# 使用迁移框架
Migrate(app, db)
# 添加迁移命令
manager.add_command('db', MigrateCommand)


if __name__ == '__main__':
    print(app.url_map)
    manager.run()